package grape.crm.rest.company.form;
import grape.common.rest.form.BaseUpdateForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 公司表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="公司更新表单对象")
public class CompanyUpdateForm extends BaseUpdateForm {

    private static final long serialVersionUID = 1L;


    @NotEmpty(message="公司名称不能为空")
    @ApiModelProperty(value = "公司名称",required = true)
    private String name;

    @ApiModelProperty(value = "公司法人客户id")
    private String legalCustomerId;

    @ApiModelProperty(value = "公司法人客户编码")
    private String legalCustomerCode;

    @ApiModelProperty(value = "上级id",notes = "添加根节点不传值")
    private String parentId;

    @ApiModelProperty(value = "描述、备注")
    private String remark;

}
